<template>
  <div class="home">
    <h1>This is an home page</h1>
    <van-button type="danger">危险按钮</van-button>
    <van-image
            round
            width="100"
            height="100"
            fit="cover"
            src="https://img.yzcdn.cn/vant/cat.jpeg"
    ><template v-slot:error>加载失败</template></van-image>
  </div>
</template>

<script>
export default {
  name: "home",
  components: {},
  mounted() {
    this.$axios.get('/api/v1/topics',{
      params: {
        tab:'ask',
        page: 1
      }
    }).then(res=>{
      console.log(res);
    })
  }
};
</script>
